package com.z.qyWeixin.vo;

import java.util.Objects;

public class OrgVO {
    private String id;
    private String name;
    private String orgId;
    private String parentId;
    private String code;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        OrgVO orgVO = (OrgVO) o;
        return Objects.equals(id, orgVO.id) &&
                Objects.equals(name, orgVO.name) &&
                Objects.equals(orgId, orgVO.orgId) &&
                Objects.equals(parentId, orgVO.parentId) &&
                Objects.equals(code, orgVO.code);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, orgId, parentId, code);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
